package com.kk.dao;

import com.kk.entity.RbacManager;
import org.apache.ibatis.annotations.Param;

/**
 * rbac用户dao层代理
 *
 * @author yyz
 * @date 2022/03/29
 */
public interface RbacManagerDao {
    /**
     * Add one int.
     *
     * @param rbacManager the rbac manager
     * @return the int
     */
    int addOne(RbacManager rbacManager);

    /**
     * Update name by id.
     *
     * @param name the name
     * @param id   the id
     */
    int updateNameById(@Param("name") String name,@Param("id") int id);

    /**
     * Delete by id.
     *
     * @param id the id
     */
    int deleteById(int id);

    /**
     * Find one by id rbac manager.
     *
     * @param id the id
     * @return the rbac manager
     */
    RbacManager findOneById(int id);
}
